﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Default.aspx.cs" Inherits="FrameWork.web._Default" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %>

<html>
<head>
    <link rel="stylesheet" href="css/Site_Css.css" type="text/css" />
    <link rel="stylesheet" type="text/css" href="inc/FineMessBox/css/subModal.css" />

    <script type="text/javascript" src="inc/FineMessBox/js/common.js"></script>

    <script type="text/javascript" src="inc/FineMessBox/js/subModal.js"></script>

    <title>
        <%=FrameName %>
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">
.navPoint
	{
	font-family: Webdings;
	font-size:9pt;
	color:white;
	cursor:pointer;
	}
p{
	font-size:9pt;
}

.font_size {  font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-size: 12px; font-weight: normal; font-variant: normal; text-transform: none}
</style>
</head>
<body scroll="no" leftmargin="0" topmargin="0"
    marginheight="0" marginwidth="0" onload="startclock()">
    <form name="clock">
        <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" style="left: 0px; position: absolute; top: 0px">
            <tr>
                <td width="100%" height="50" colspan="3" style="border-bottom: 1px solid #000000">
                    <table height="49" border="0" cellspacing="0" cellpadding="0" width="100%" class="font_size">
                        <tr>
                            <td width="300" style="height: 49px">
                                <b>
                                    <%=TopTitle%>
                                </b>
                                <br />
                                <font size="2" color="#999999" face="Verdana, Arial, Helvetica, sans-serif">
                                    <%=FrameNameVer %>
                                </font>
                            </td>
                            <td style="background-image: url(images/webform.jpg); background-repeat: no-repeat;
                                background-position: right top; height: 49px;" valign="bottom">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="30px" style="width=100%" colspan="3">
                    <iframe name="MainTop" style="height: 100%; visibility: inherit; width: 100%; z-index: 1"
                        scrolling="no" frameborder="0" src="Menu2.aspx"></iframe>
                </td>
            </tr>
            <tr>
                <td style="width:100%; height: 25px;" colspan="3" align="left" valign="top">
                    <table border='0' cellpadding='0' cellspacing='0' style="position: absolute; width: 100%;" align='left'>
                        <tr>
                            <td style="width: 5px; height: 22px">
                                <img border='0' src='images/index/top-b4-1.gif' width='5'></td>
                            <td background="images/index/top-b4-b.gif" align="left" id="menu_{1}_{2}"
                                valign="middle" style="width: 20%; height: 22px">
                                <asp:Label ID="labUser" runat="server" Text="当前登录用户：" meta:resourcekey="labUserResource1"></asp:Label></td>
                            <td background="images/index/top-b4-b.gif" id="Td1" valign="middle" align="left" style="height: 22px; width: 35%;">
                                <asp:Label ID="Label1" runat="server" Text="当前时间：" meta:resourcekey="Label1Resource1"></asp:Label><input name="thetime"
                                    style="background='images/index/top-b4-b.gif'; font-size: 9pt; color: black;
                                    border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid;
                                    border-bottom: white 1px solid;" size="28">
                                <td background="images/index/top-b4-b.gif" width="200" class="topmenuoff2" id="Td2"
                                    valign="middle" align="right" onclick="logOut()" style="height: 22px; width: 50%;">
                                    <asp:Label ID="Label3" runat="server" Text="系统退出" meta:resourcekey="Label3Resource1"></asp:Label>
                                    &nbsp; &nbsp;
                                </td>
                                <td style="width: 5px; height: 22px">
                                    <img border='0' src='images/index/top-b4-2.gif' width='5'></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td id="frmTitle" name="frmTitle" nowrap="nowrap" valign="middle" align="center"
                    style="border-right: 1px solid #000000; width: 16%">
                    <iframe name="IframeLeft" style="height: 100%; visibility: inherit; width: 198; z-index: 2; border-top-width: thin; border-left-width: thin; border-left-color: red; border-bottom-width: thin; border-bottom-color: red; border-top-color: red; border-right-width: thin; border-right-color: red;"
                        scrolling="auto" frameborder="0" id="IframeLeft"></iframe>
                </td>
                <td valign="middle" align="right" class="middleCss" style="width: 1%">
                    <img border="0" src="images/Menu/close.gif" id="menuimg" alt="隐藏左栏" onmouseover="javascript: menuonmouseover();"
                        onmouseout="javascript: menuonmouseout();" onclick="javascript:switchSysBar()"
                        style="cursor: hand" width="11" height="76" /></td>
                <td style="width: 100%">
                    <iframe name="Iframe1" style="height: 100%; visibility: inherit; width: 100%; z-index: 1"
                        scrolling="auto" frameborder="0"></iframe>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

<script language="JavaScript" type="text/javascript">
//退出系统
function logOut()
{
    this.location="LoginOut.aspx";
}



var DispClose = true;

function CloseEvent()
{
    if (DispClose)
    {
        return "是否离开当前页面?";
    }
}
    rnd.today=new Date(); 

    rnd.seed=rnd.today.getTime(); 

    function rnd() { 

　　　　rnd.seed = (rnd.seed*9301+49297) % 233280; 

　　　　return rnd.seed/(233280.0); 

    }; 

    function rand(number) { 

　　　　return Math.ceil(rnd()*number); 

    }; 
    
    function AlertMessageBox(Messages)
    {
        DispClose = false; 
        window.location.href = location.href+"?"+rand(1000000);
       
    }
    


function switchSysBar(){

 	if (document.all("frmTitle").style.display=="none") {
		document.all("frmTitle").style.display="";
		document.images["menuimg"].src="images/Menu/close.gif";
		document.images["menuimg"].alt="隐藏左栏";
		}
	else {
		document.all("frmTitle").style.display="none"
		document.images["menuimg"].src="images/Menu/open.gif";
		document.images["menuimg"].alt="开启左栏"
	 }
	 
	 

}

 function menuonmouseover(){
 
 		if (document.all("frmTitle").style.display=="none") {
 		document.images["menuimg"].src="images/Menu/open_on.gif";
 		}
 		else{
 		document.images["menuimg"].src="images/Menu/close_on.gif";
 		}
 		
 }
 function menuonmouseout(){
 		if (document.getElementById("frmTitle").style.display=="none") {
 		document.images["menuimg"].src="images/Menu/open.gif";
 		}
 		else{
 		document.images["menuimg"].src="images/Menu/close.gif";
 		}
 		
 		
 }
     if(top!=self)
    {
        top.location.href = "default.aspx";
    }

//时间显示
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;}
function startclock () {
stopclock();
showtime();}
function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = now.getYear()+"年"+(now.getMonth()+1)+"月"+now.getDate()+"日" +((hours >= 12) ? " 下午 " : " 上午 " )
timeValue += ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
document.clock.thetime.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;}
</script>

